package 设计模式.templateMethod;

/**
 * @功能
 * @创建时间 2020/5/4
 */
public class Client {
    public static void main(String[] args) {
    BankTemplateMethod b = new DrawMoney();
    b.process();
    }
}
class DrawMoney extends BankTemplateMethod{

    @Override
    public void transact() {
        System.out.println("取款");
    }
}